package com.pro.tesst;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.pro.beans.Beans1;

public class MySpring {
	public static void main(String[] args) {
		
		String[] s = new String[]{"111","222"};
		s[2] = "333";
		System.out.println(s.toString());
		List<String> list = new ArrayList<String>(Arrays.asList(s));
		for(String l:list){
			System.out.println(l);
		}
//		MapperScannerConfigurer
//		DispatcherServlet
//		BeanDefinition
//		System.out.println(ClassLoader.getSystemResource(""));
		ApplicationContext ctx = new ClassPathXmlApplicationContext("../resource/applicationContext.xml");
		Beans1 bean = (Beans1)ctx.getBean("bean1");
		System.out.println(bean.getName());
	}
}
 